package com.wanmait.deliverymangementsystem.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.deliverymangementsystem.pojo.Runner;

import java.util.List;

public interface RunnerService {
    Runner Login(Runner runner);
    List<Runner> runnerList();
    void register(Runner runner);
    void taskAvailable(Boolean ava,Integer id);
    void addOrderNumber(Runner runner);
    void updateWallet(Runner runner);

    void updateLoginStauts(Integer  id,Boolean stauts);

    void giveNickName(Integer id,Integer nickID);

    Runner findById(Integer id);

    void updateRatingById(Runner runner);

    PageInfo<Runner> findByCityID(Integer page,Integer id);

    PageInfo<Runner> findRunner(Integer page,String name,String number);
}
